<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>
            {$pos.name} 新增内容
            <button class="btn btn-default btn-return" onclick="javascript:history.back(-1);return false;"><i class="glyphicon glyphicon-share-alt"></i> 返 回</button>
        </h2>
    </div>
    <form action="" method="post" class="form">
        <input type="hidden" name="posId" value="{$pos.id}">
        <div class="form-item form-group">
            <label class="item-label">标题<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text form-control input-small" value="{$pos.name}" readonly="true">
            </div>
        </div>
        <div class="form-item form-group">
            <label class="item-label">标识<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text form-control input-small" value="{$pos.code}" readonly="true">
            </div>
        </div>
        <div class="form-item form-group">
            <label class="item-label">类型</label>
            <div class="controls">
                <input type="text" class="text form-control input-small" value="{$type_str}" readonly="true">
            </div>
        </div>
        <div class="form-item form-group">
            <label class="item-label">{$type_str} ID<span class="check-tips">必填</span></label>
            <div class="controls">
                <input type="text" class="text form-control input-small" name="target_id" value="">
            </div>
        </div>
        <div class="form-item form-group form-action">
            <button class="btn submit-btn ajax-post btn-success btn-block" id="submit" type="submit" target-form="form">确 定</button>
            <!-- <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button> -->
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('index')}');
    </script>
</block>